package com.example.log.mapper;

import com.example.log.pojo.UserLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface LogMapper {
    @Insert("insert into tb_log " +
            "(ip,username,created_time,operation,method,params,time,status,error) " +
            "values" +
            "(#{ip},#{username},#{createdTime},#{operation},#{method},#{params},#{time},#{status},#{error}) ")
    int insert(UserLog userLog);
}//运行时底层会为此接口创建接口实现类对象,这个对象是一个代理对象
